package com.fantuan.db.service;

import java.sql.SQLException;
import java.util.Date;

import com.fantuan.db.bean.Group;
import com.fantuan.db.bean.User;

public interface FtService {

	public User login( String email, String password )throws SQLException;
	
	public void createGroup( User user, Group group )throws SQLException;
	
	public boolean addUserToGroup( User user, Group group )throws SQLException;
	
	public boolean quitGroup( User user, Group group )throws SQLException;
	
	//添加一次消费信息
	public boolean addConsume( Integer groupID, Integer consumeUserID, Integer[] memberUserIDs, double allMoney, String address, String remark, Date consumeDate )throws SQLException;
	//删除一次消费信息
	public boolean removeConsume( Integer consumeID, Integer processUserID )throws SQLException;

}
